if voidp(getaProp(getaProp(gStates, #BeenThere), #H01)) then
PDARelease("J06hosp.mov")
end if
checkOnEnterH()
end
on enterH04
pickNurse(1)
end
on exitH04
set NurseObj to getaProp(gObjects, #NurseVid)
MakeDynamic(#NurseVid, #clickCount, 1)
set curCond to getaProp(getaProp(gObjects, #NurseVid), #curCond)
if getOne(getaProp(NurseObj, #condList), curCond) = 0 then
set condList to getaProp(NurseObj, #condList)
add(condList, curCond)
MakeDynamic(#NurseVid, #condList, condList)
end if
MakeDynamic(#PaMonitor, #PINEntered, #empty)
end
on calcTransToH06 Test
if Test = #Debug then
return [#H06, #H06B]
end if
pickAgent(#H06)
set agentStatus to getaProp(getaProp(gObjects, #Agent06vid), #DisplayState)
if agentStatus = #OffScreen then
return #H06
else
return #H06B
end if
end
on enterH06B
set gHaveNavs to #false
Startthetimer(600, "handleAgentMovie06")
end
on exitH06B
set gHaveNavs to #true
end
on handleAgentMovie06
Startthetimer(the stopTime of sprite sQTCharSprite - the movieTime of sprite sQTCharSprite + 10, "jumpH06")
end
on jumpH06
Jumptokey(#H06)
end
on calcTransToH07 Test
if Test = #Debug then
return [#H07, #H07B]
end if
pickAgent(#H07)
set agentStatus to getaProp(getaProp(gObjects, #Agent07vid), #DisplayState)
if agentStatus = #OffScreen then
return #H07
else
return #H07B
end if
end
on enterH07B
set gHaveNavs to #false
Startthetimer(600, "handleAgentMovie07")
end
on handleAgentMovie07
Startthetimer(the stopTime of sprite sQTCharSprite - the movieTime of sprite sQTCharSprite + 10, "jumpH07")
end
on jumpH07
Jumptokey(#H07)
end
on exitH07B
set gHaveNavs to #true
end
on EnterH08
if (getaProp(getaProp(gStates, #Conditions), #ShortStock) = #true) and (getaProp(gStates, #Debt) = 0) and (getaProp(getaProp(gObjects, #PaMonitor), #HospPaid) = #true) then